#ifndef __I2C_H__
#define __I2C_H__

sbit SCL=P2^1;
sbit SDA=P2^0;

void Send_Start();
void Send_End();
void Send_Action(unsigned char m);
unsigned char Receive_Action();
void Send_Data(unsigned char m_data);
unsigned char Receive_Date();

void Send_Message(unsigned char w_address,unsigned char m_data);//w_address是数据地址，一共可以存储256个字节
unsigned char Receive_Message(unsigned char r_address);

#endif